package com.ptswitch.material.service;

import java.util.List;

import org.hxzon.project.ModelService;

import com.ptswitch.material.model.common.Uzer;

public interface UserService extends ModelService<Uzer> {
    public Uzer findByUsername(String username);

    public Uzer findByUsernameAndPassword(String username, String password);

    public List<Uzer> findByDepartment(int department);

    public boolean existUsername(String username);

    public boolean isAdmin(String username);

    public boolean isAdmins(String username);
}
